Connectivity Software User's Guide and Reference
CryptEncodeObject(Int32,Int32,CERT_PUBLIC_KEY_INFO,Byte[],Int32) Method



OpcLabs.BaseLibPrimitives Assembly > OpcLabs.BaseLib.Licensing Namespace > Crypto.NativeMethods Class > CryptEncodeObject Method : CryptEncodeObject(Int32,Int32,CERT_PUBLIC_KEY_INFO,Byte[],Int32) Method

The value of this parameter can be null (Nothing in Visual Basic).

Syntax
'Declaration
 
Public Overloads Shared Function CryptEncodeObject( _
   ByVal dwCertEncodingType As Integer, _
   ByVal lpszStructType As Integer, _
   ByRef pvStructInfo As Crypto.CERT_PUBLIC_KEY_INFO, _
   ByVal pbEncoded() As Byte, _
   ByRef pcbEncoded As Integer _
) As Boolean
'Usage
 
Dim dwCertEncodingType As Integer
Dim lpszStructType As Integer
Dim pvStructInfo As Crypto.CERT_PUBLIC_KEY_INFO
Dim pbEncoded() As Byte
Dim pcbEncoded As Integer
Dim value As Boolean
 
value = Crypto.NativeMethods.CryptEncodeObject(dwCertEncodingType, lpszStructType, pvStructInfo, pbEncoded, pcbEncoded)

Parameters

dwCertEncodingType
lpszStructType
pvStructInfo
pbEncoded

The value of this parameter can be null (Nothing in Visual Basic).

pcbEncoded
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also